function [x_out, y_out, e_out] = validateData(varargin)

for i=1:length(varargin)
    if any(imag(varargin{i})) && isnumeric(varargin{i})
        error()
    end
end

x=varargin{1}; x=x(:);
y=varargin{1}; y=y(:);
e=varargin{1}; e=e(:);


if length(unique([size(x);size(y);size(e)]))~=2
    error();
end

x_out=x;
y_out=y;
e_out=e;